/* 响应式布局样式 */
@media (max-width: 767px) {
    /* 移动端表单样式 */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .form-control {
        width: 100%;
    }
    
    /* 移动端按钮样式 */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        border-radius: 0.25rem !important;
        margin-right: 0;
    }
    
    /* 移动端表格样式 */
    .table-responsive {
        margin: 0 -15px;
        padding: 0 15px;
        overflow-x: auto;
    }
    
    .table th,
    .table td {
        white-space: nowrap;
        min-width: 100px;
    }
    
    /* 移动端卡片样式 */
    .card {
        margin-bottom: 1rem;
        border-radius: 0.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* 移动端导航样式 */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        padding: 0.4rem 0.8rem;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .nav-item {
        padding: 0.5rem 0;
    }
    
    /* 移动端模态框样式 */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        margin: 0.25rem 0;
    }
    
    /* 移动端提示框样式 */
    .toast-container {
        width: 100%;
        padding: 0.5rem;
    }
    
    .toast {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* 移动端加载状态样式 */
    .loading-overlay {
        padding: 1rem;
    }
    
    .loading-spinner {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .loading-text {
        margin-top: 0.5rem;
        font-size: 0.9rem;
    }
}

/* 平板设备样式 */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .btn-group {
        flex-wrap: wrap;
    }
    
    .btn-group .btn {
        margin-bottom: 0.5rem;
    }
}

/* 高分辨率设备样式 */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    .dark-mode .card {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .dark-mode .form-control {
        background-color: #333;
        border-color: #404040;
        color: #f0f0f0;
    }
    
    .dark-mode .btn-light {
        background-color: #404040;
        border-color: #4d4d4d;
        color: #f0f0f0;
    }
    
    .dark-mode .modal-content {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .dark-mode .toast {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .dark-mode .loading-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
} 